/******************************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Ltd.                       */
/*                                                                            */
/*  NAME      = db2_param.h                                                   */
/*  NOTE      =                                                               */
/*  DATE      = 2015/03/19 by zhengxd                                         */
/******************************************************************************/
#ifndef _DB2_PARAM_H_
#define _DB2_PARAM_H_

#include "db2_comm.h"

#define DRDA_PARAM_HD_LEN     4        //parameter header length

int db2_get_param_hd_info(L7_fragment_db2 *p_st_fragment
                         , int i_whole_flg
                         , unsigned int *p_ui_ddm_left_len
                         , int *p_i_param_cp
                         , unsigned int *p_ui_param_bd_len);

int db2_skip_param(Frbyte_Packet *p_st_data
                  , unsigned int ui_param_len
                  , int i_whole_flg
                  , unsigned int *p_ui_ddm_left_len);

int db2_parse_mgrlvlls(Frbyte_Packet *p_st_data
                      , unsigned int ui_param_len
                      , int i_whole_flg
                      , char *p_ccsid
                      , unsigned int ui_ccsid_size
                      , unsigned int *p_ui_ddm_left_len);

int db2_get_sess_num(Frbyte_Packet *p_st_data
                    , unsigned int ui_param_len
                    , int i_whole_flg
                    , unsigned int *p_ui_ddm_left_len
                    , int64_t *p_i64_sess_num);

int db2_get_synctype(Frbyte_Packet *p_st_data
                     , unsigned int ui_param_len
                     , int i_whole_flg
                     , uint8_t *p_u8_syntype
                     , unsigned int *p_ui_ddm_left_len);

#endif
